Apparatus and method for providing a binary range tree search

ABSTRACT

The present invention relates to a system and method for searching information. The method involves defining a first node having a first range, and a second node having a second range that is either less than or greater than the first range. Each of the first and second ranges has a plurality of range values, and each of the range values has data associated therewith. Information having a value is then received. The method determines if the value is located in the first node, if so, data associated with the value is retrieved. Otherwise, the method determines if the value is located in the second node. Data associated with the value is retrieved if the value is located in the second node.

BACKGROUND OF THE INVENTION

[0001] 1. Field of the Invention

[0002] The present invention relates generally to communication devices, and specifically, to an apparatus and method for classifying information received by communications devices.

[0003] 2. Background Information

[0004] Small and medium businesses typically have networks comprised of local area networks (“LANs”), ranging between 10 Mega bits per second (“Mbps”) to 100 Mbps, that carry information between stations for a wide range of applications. The applications can include a mixture of voice, video, interactive, web browsing, file transfers, etc., each of which has different minimum requirements for latency, jitter, and data loss to ensure quality communication. The internal office LANs can either provide sufficient bandwidth or are economically upgradable to provide an order of magnitude increase in bandwidth.

[0005] The connection to a wide area network (“WAN”) is however another matter. The bandwidth is not easily upgradable due to the cost of WAN access circuits. Various queuing techniques have been employed in WAN access equipment in attempts to provide sharing of the limited circuit bandwidth among the different types of data. These queuing techniques typically have limited applications and undesirable characteristics. For example, in one queuing technique, queues are serviced in strict priority order, which tends to starve low priority data types. Another technique, called Weighted Fair Queuing, solves the starvation effects but it is computational intensive and does not provide guaranteed bandwidth, delay bound or jitter bound characteristics for data types that need these characteristics.

[0006] In implementing such queuing techniques, incoming data must first been identified and thereafter, classified for queuing allocation. Current routers, which provide some form of classification system, do so by combining search technologies previously used for routing table lookups. These technologies rely on algorithms such as the Patricia tree (as described by Don Morrison in “Practical Algorithm to Retrieve Information Coded In Alfanumeric,” Journal of the ACM, October 1968), or the Lulea tree (as described by Mikael Degermark of the Lulea University of Technology in “Small Forwarding Tables for Fast Routing Lookups,” Computer Communications Review, October 1998), search algorithms to perform lookup operations of various portions of the internet protocol (IP) header. The results from these searches are combined in some fashion (e.g., using Cross Product tables or arrays, as described by V. Srinivasan of Washington University in “Fast and Scalable Layer Four Switching,” Computer Communications Review, October 1998) and used to formulate a “class” for the incoming data.

[0007] Existing routing search algorithms are used to handling definitions of the form “Address A =route n”. To apply an existing routing search technique for searching and classifying data, in ranges “n” individual search steps have to be used. This results in excess data storage space requirements, and additional processing requirements when handling classification ranges.

[0008] Since the number of possible resulting combinations can be immense, the problem of translating the search results to a “class” is not trivial. Traditional approaches use either a simple array or something like a Cross Product table (as described by V. Srinivasan of Washington University in “Fast and Scalable Layer Four Switching,” Computer Communications Review, October 1998.

[0009] Simple arrays, although fast, require memory to hold every possible combination, so are impractical except for the simplest cases. The problem associated with using Cross Product tables to locate the final “class” results is that the most recently accessed results must be cached in the Cross Product table. Basically, the results from each individual search are combined by an expression similar to “finalResult=(((((((result1 * maxResult1)+result2) * maxResult2)+result3) * maxResult3)+result4) * maxResult4)+result5”. The final “cross product” value is searched for in the “key” column of the Cross Product table, using a binary search. If the value is found, the correspond “result” column entry is returned as the “class” value. If not found, which is more likely to be the case due to the large range of possible values, a exhaustive search of the available classes must be done. The found “class” and the “cross product” value are both added to the “Cross Product” table. Although a Cross Product table does minimize the amount of memory required, processing requirements become nondeterministic.

[0010] Accordingly, there is a need in the technology for classifying incoming data received by a communications device that overcomes the aforementioned problems.

[0011] To classify incoming data, searches are typically performed to identify incoming data such as network frames or protocol data units. Traditional search methods either required each unique value to be explicitly stored in a search tree, or required an elaborate tree structure such as the use of a “grid of tries” to provide an efficient search. Since the search has to operate very quickly (typically less than one microsecond on the average), it is imperative to utilize the full capabilities of the processor in the communications device. For such traditional search techniques to operate efficiently, all data that has to be searched is typically stored in the processor's memory space. However, since the processor has only limited amounts of internal memory, the implementation of such traditional search techniques are not practicable.

[0012] Moreover, such in using such traditional search techniques, the average and worst case execution times do not remain deterministic beyond a small number of search values. These values are those that are located in the processor's memory space.

[0013] Accordingly, there is a need in the technology for an apparatus and method for identifying incoming data received by a communications device that overcomes the aforementioned problems.

SUMMARY OF THE INVENTION

[0014] The present invention relates to a system and method for searching information. The method involves defining a first node having a first range, and a second node having a second range that is either less than or greater than the first range. Each of the first and second ranges has a plurality of range values, and each of the range values has data associated therewith. Information having a value is then received. The method determines if the value is located in the first node, if so, data associated with the value is retrieved. Otherwise, the method determines if the value is located in the second node. Data associated with the value is retrieved if the value is located in the second node.

BRIEF DESCRIPTION OF THE DRAWINGS

[0015]FIG. 1 illustrates an embodiment of a communication device suitable for use with embodiments of the present invention.

[0016]FIG. 2 illustrates functional blocks within a queuing module 200 according to one embodiment of the present invention.

[0017]FIG. 3A illustrates one embodiment of the classification technique provided in accordance with the principles of the invention.

[0018]FIG. 3B illustrates one example of Axis Preprocessing technique provided in accordance with the principles of the invention.

[0019]FIG. 4 illustrates details of functional blocks within the flow classification and routing block 218 according to one embodiment of the invention.

[0020]FIG. 5A illustrates one embodiment of a search process flow provided in accordance with the principles of the present invention.

[0021]FIG. 5B is a diagram that illustrates one example of the search process of FIG. 5A.

DETAILED DESCRIPTION

[0022] The present invention thus provides a classification system and method by implementing an Axis Preprocessing classification technique in combination with a Binary Range Tree searching technique. The Binary Range Tree searching technique allows large ranges of contiguous values to be search using a minimal number of tree “nodes”, while the Axis Preprocessing technique assures that the maximum number of contiguous ranges is generated in the final “class” search step.

[0023]FIG. 1 illustrates an embodiment of a communication device 100 suitable for use with embodiments of the present invention. In one embodiment, the communication device 100 is a quality of service access communications device. Referring to FIG. 1, the communication device 100 includes a central processing unit (“CPU”) 105 such as a microprocessor, microcontroller, or digital signal processor having on chip instruction and data memory 108 and 110 (e.g., static random access memory “SRAM”), which are cache-like devices. The CPU 105 is coupled to a plurality of devices by way of a system bus 115. In particular, the CPU 105 is coupled to an external memory 120 (e.g., Synchronous Burst SRAM, Synchronous Dynamic RAM, etc., or a combination of such devices), a FLASH memory device 125 (e.g., 8 Mbytes) for downloading program information, and a battery backup SRAM 130 (e.g., 2 Mbytes).

[0024] In addition, a number of input/output (“I/O”) devices are coupled to the bus 115, including an Ethernet media access control (“MAC”) port 145 for receiving/transmitting data packets from/to a physical interface 150 and a plurality of T1/E1 framers 160 ₁-160 _(X) (where “X” is a positive whole number) for receiving/transmitting asynchronous transfer mode (“ATM”) cells and frames from/to respective I/O ports 165 ₁-165 _(X). A field programmable gate array (“FPGA”) 170 is coupled to the bus 115. The FPGA 170 is also coupled to the T1/E1 framers 160 ₁-160 _(X) and the CPU 105 by way of a serial bus 175. The control path of the T1/E1 framers 160 ₁-160 _(X) and the FPGA 170 is through the bus for configuring and reading status information from the devices. The data path (e.g., ATM cells, frames, etc.) to/from the ports is provided though the serial bus 175. That is, data received from a port is transmitted to the CPU 105 through the FPGA 170 by way of the serial bus 175, and data is transmitted to a port from the CPU 105, though the FPGA 170 by way of the serial bus 175.

[0025] Also coupled to the bus 115 are general purpose timers 135, which are used for generating periodic interrupts, and direct memory access (“DMA”) controllers 140 for transferring data from memory to memory, from the Ethernet MAC port buffer to memory, etc.

[0026] When the communication device 100 is powered up, an operating system 122 is loaded into memory 120 and/or the instruction cache 108 from a non-volatile storage device (e.g., FLASH 125) or a mass storage device such as a hard disk drive (not shown). Also loaded into memory 120 and/or the data cache 110 is a configuration database 124 having configuration information on virtual path connections (“VPCs”) and virtual circuit connections (“VCCs”) established for each user network interface (“UNI”). Thus, a user or organization wanting to communicate over a wide area network (“WAN”) will lease VPC and/or VCC services from a communication carrier. The communication carrier then establishes the VPC and/or VCC services for each UNI into the communication device 100.

[0027] A UNI is hereinafter used interchangeably with a port, with each port having one or more physical links. As discussed herein, a “data unit” refers to a packet, frame, or cell. A “flow” is defined as a uniquely identified stream of data units. Through inspection of data unit headers, the data units are categorized and classified to constitute a uniquely identified flow. In one embodiment, a flow is either a level-1 flow or a level-2 flow. Moreover, flows may be aggregated such that they are processed and managed as one aggregate flow. Thus, any reference to a flow refers to a flow or a flow aggregate. Processing and management of a flow includes allocating resources for the flow. Examples of resource allocation include link bandwidth allocation and node buffer allocation for a flow. An example of processing includes encapsulation of Internet Protocol (“IP”) datagrams with ATM request for comment (“RFC”) 1483 encapsulation, entitled “Multiprotocol Encapsulation over ATM Adaptation Layer 5”, published in July 1993. A protocol or protocol layer is hereinafter defined as a protocol that can be mapped into the Open System Interconnection (“OSI”) layer model.

[0028]FIG. 2 illustrates functional blocks within a queuing module 200 implemented on the communication device 100 according to one embodiment of the present invention. Referring to FIG. 2, the functional blocks are broken up into three vertical segments, namely, receive, control, and transmit, and two horizontal segments, namely non-interrupt and interrupt functions. In one embodiment, the queuing module 200 is implemented in software, in which case, the queuing module 200 or portions thereof is contained in the memory 120 and/or internal memory 108 of the CPU 105, and is executed by the CPU 105 (FIG. 1). For discussion purposes, the queuing module 200 is described as comprising a receive module, and a queue and transmit (QCT) module 205.

RECEIVE SEGMENT

[0029] In the receive segment, packets and frames such as, for example, IP packets, Ethernet frames, and frame relay frames are received by a packet/frame input function 210. The input function 210 performs preliminary filtering and cyclic redundancy checking (“CRC”) on the packets and frames. The packets and frames are then forwarded to a flow classification and routing block 218.

[0030] ATM cells are received by a cell input function 212. The cell input function 212 determines whether there is an existing connection for the cell stream. The cells are then passed to an adaptation layer processing block 214 where the cells are converted to contiguous protocol data units (“PDUs”) using, for example, ATM adaptation layer 5 (“AAL5”). The adaptation layer processing block 214 also detects Integrated Local Management Interface (“ILMI”), Operations, Administration, and Maintenance (“OAM”), and signaling cells, and passes them directly to a supervision message system block 220 for setting up/tearing down connections, etc. In addition, the adaptation layer processing block 214 detects resource management cells relating to flow control (e.g., ATM available bit rate “ABR” RM cells, etc.), and passes these cells to a resource manager block 222 which then slows down or speeds up an existing flow in response to the management cells. After each PDU is reconstructed, it is passed to an ATM decapsulation layer block 216 where PDUs are decapsulated into data units using RFC 1483. The ATM decapsulation layer block 216 then forwards the data units to the flow classification and routing block 218.

[0031] The flow classification and routing block 218 determines whether a flow has been set up for an incoming data unit, and determines the class of traffic that the flow is assigned. If a flow has been set up for the packet, the packet and an associated Flow ID are transmitted to a forwarding block 230 in the transmit segment. The Flow ID includes several components including a destination link, the shaping/scheduling parameters of the flow, the quality of service (“QoS”) parameters assigned to the flow, etc. Assignment of the Flow ID is dependent on the classification of the flow. The class assigned to the flow determines the QoS to be provided for that flow. In one embodiment, the Flow ID is an address pointing to a memory location where the aforementioned parameters are located. If a flow has not been assigned to the packet, the packet is sent to the forwarding block 230 with a request that a flow be created for the packet at a desired QoS. Details of the flow classification and routing block 218 will be described in detail in the following sections.

[0032] In the case of VPC service, the VPCs are ordered and leased from a service provider. The VPC configuration associated with the VPC service ordered is then placed in the configuration database 124 of the communication device 100 (FIG. 1). The VPC may be manually configured or automatically configured using protocols such as ILMI. In response to the VPCs ordered, the queuing module 200 sets up level-1 flows for the VPCs. Flow classification and policy definitions determine how to identify one protocol stream from another, in addition to the QoS parameters required to support each stream. As data units are received on an interface for a class where a flow has not been established, a level-2 flow is requested from a fly-by flow admission control block 232 via a forwarding application program interface (“API”) block 230 based upon the flow classification and policy definition. When a level-2 flow is requested, it is requested with a corresponding level-1 Flow ID that was created by the user configuration. The flow classification and routing block 218 use the configuration to determine routes and the set of level-1 flows available to make level-2 flows. Each level-2 flow created is assigned a level-2 Flow ID and a VCC. The VCC assignment allows flows to be multiplexed at the cell level (e.g., one cell from one flow followed by one cell from another flow).

[0033] In the case of VCC service, the VCCs are also ordered and leased from the service provider. The VCC configuration associated with the VCC service ordered is then placed in the configuration database 124 of the communication device 100 (FIG. 1). This can be manually, or automatically configured using protocols such as ILMI. In response to the VCCs ordered, the queuing module 200 sets up level-1 flows for the VCCs. Flow classification and policy definitions determine how to identify one protocol stream from another and determine the QoS parameters required to support each stream. As data units are received on an interface for a class where a flow has not been established, a level-2 flow is requested from the fly-by flow admission control block 232 via the forwarding API block 230 based upon the flow classification and policy definition. When a level-2 flow is requested, it is requested with a corresponding level-1 Flow ID that was created by the user configuration. The flow classification and routing block 218 uses the configuration to determine routes and the set of level-1 flows available to make level-2 flows. Each level-2 flow created is assigned a Flow ID. VCC service does not assign VCCs to flows as in the VPC service. However, data structures for flow state machines are created and initialized as in VPC service. With VCC service, flows are multiplexed at the packet level (e.g., when a flow is chosen for output service, all segments of the packet are transmitted in consecutive succession before another flow is serviced).

CONTROL SEGMENT

[0034] In the control segment, a connection management task 226 (e.g., an ATM management task) and a physical interface management task 228 are provided and run with/on the operating system 122 (FIG. 1). These tasks operate in the non-interrupt code space and communicate with the resource manager 222 by way of an API using the supervision message system 220. The API is used to pass messages (e.g., LMI, OAM, and signaling information) between the tasks and the WAN interface. The resource manager 222 sends requests for establishing, terminating, and modifying connections to the connection management task 226. The connection management task 226 responds to such requests directing the resource manager 222 to install, de-install, or modify the connections. The physical layer management task 228 communicates with the resource manager 222, notifying the latter of the (up/down) status of physical ports. The LMI, OAM, and signaling messages passed back to the supervision message system 220 from the connection management task 226 are sent directly to a buffer management block 234 for queuing in queues 236, and subsequent output.

[0035] The resource manager 222 handles the installation, de-installation, and modification of flows. This includes handling and generating resource management data to control the data rate for flow controlled connections such as, for example, ATM ABR. The resource manager 222 is also responsible for mapping class and policy definitions for the flows. Such class and policy definitions include resource requirements (e.g., bandwidth, peak rate limits, buffer delay, and jitter). Moreover, the resource manager 222 assigns pre-established VCCs and flow state machine data structures for VPC service due to the activation/deactivation of the flows (e.g., layer-3 to layer-7 protocol flows such as IP). Activation of flows occurs upon data unit arrivals, or signaling protocols (e.g., ATM SVC Signaling or Resource RerserVation Protocol “RSVP”) that require a flow be established. Deactivation of flows occurs upon timeouts for flows (e.g., data unit arrivals not received for a predetermined amount of time), or by signaling protocols such as ATM SVC signaling and RSVP. The resource manager 222 is coupled to a flow database 224 which contains the current resource state (e.g., available bandwidth for allocation, available buffers for allocation, etc.).

[0036] In addition, the flow database 224 includes other parameters and state variables including, but not limited or restricted to, Flow ID used to map, for example, a layer-3 protocol (e.g., IP) classified flow into a level-2 VCC, connection shaping parameters and state (e.g., QoS parameters such as peak and sustained bandwidth, maximum queuing delay, maximum burst size, etc.), and connection scheduling parameters and state (e.g., sustained rate). The resource manager 222 allocates resources for flows and keeps track of remaining resources using the flow database 224. It determines whether resources can be allocated to flows and reclaims resources for flows no longer active.

[0037] In the case of ATM, an example of a resource request to the resource manager 222 may include the following:

[0038] (1) ATM connection index;

[0039] (2) ATM connection type (VPC or VCC);

[0040] (3) Virtual path identifier (“VPI”);

[0041] (4) Virtual connection identifier (“VCI”);

[0042] (5) Traffic contract (e.g., ABR, UBR, VBR, CBR, GFR);

[0043] (6) Peak cell rate (“PCR”);

[0044] (7) Sustained cell rate (“SCR”);

[0045] (8) Minimum cell rate (“MCR”);

[0046] (9) Maximum cell burst size (“MBS”);

[0047] (10) Associated routing virtual interface number;

[0048] (11) Associated UNI number;

[0049] (12) Buffer allocation (e.g., number of buffers);

[0050] (13) ATM VCC endpoint function assignment (e.g., AAL5, AAL2, ILMI);

[0051] (14) Encapsulation Type (e.g., 1483, null, etc.);

[0052] (15) Hierarchy Level-1 assignment (VPC, VCC);

[0053] (16) Hierarchy Level-2 assignment (VCC, AAL2VCC, AAL5 packet mode VCC); and

[0054] (17) Range of VCIs available within VPC (for VPC service).

[0055] The connection management task 226, upon initialization, interfaces with the operating system 122 running on the communication device 100 and reads the configuration information in the connection database 124 to install the user configurations (FIG. 1). If there is a VPC service to be configured, the connection management task 226 issues a request to the resource manager block 222 to install a level-1 flow (and requests a QoS) for the VPC. The resource manager block 222 then establishes a level-1 flow and assigns resources to the flow. The resource manager block 222 then sends a deny or confirmation message and a Flow ID back to the connection management task block 226. A deny message indicates that there are insufficient resources available if the request indicated to deny in the case of insufficient resources. A confirmation message indicates that there were either sufficient resources and a flow assigned, or insufficient resources (e.g., less than requested resources) and a flow assigned. A similar protocol is performed for VCC service. The connection management task block 226 then notifies the flow classification and routing block 218 of the set of VPCs and VCCs (level-1 flows) that are set up to be used by sending the Flow IDs of the VPCs and VCCs to the same.

TRANSMIT SEGMENT

[0056] In the transmit segment, the forwarding API block 230 passes data units, Flow IDs, and/or requests for assignment of Flow IDs and QoS from the flow classification and routing block 218 to a fly-by flow admission control block 232. The fly-by flow admission control block 232 performs admission control for data unit arrivals for which there is no assigned flow. This is required due to the connectionless nature of many protocol layers (e.g., IP). For support of packet classifications, the fly-by flow admission control block 230 interacts with the flow classification and routing block 218 to map protocol layer flows to level-1 or level-2 flows.

[0057] At initialization, the connection management task 226 creates pre-configured level-2 flows between the source and destination node on which it can map a layer protocol flow to the level-2 flow (e.g., mapping a new layer-3 protocol such as IP, or a layer-2 protocol such as frame relay or PPP to a level-2 flow). Each pre-configured level-2 flow is initially setup without any QoS parameters assigned to it.

[0058] The flow classification and routing block 218 passes data units and their corresponding Flow IDs to the fly-by flow admission control block 232 for existing flows. The fly-by flow admission control block 232 then forwards the data units to the buffer management block 234 for queuing.

[0059] To establish a new flow, the flow classification and routing block 218 passes a resource request to the fly-by flow admission block 232 for the QoS parameters for a new flow. QoS parameters include, but are not limited or restricted to, peak rate, sustained rate, delay, jitter, and maximum burst size. In response to the resource request, the fly-by flow block 232 attempts to acquire resources for the flow by sending a request to the resource manager 222. The resource manager 222 determines whether there are sufficient resources such as bandwidth, buffers, connection identifiers, delay bounded routes, etc. to meet the desired QoS associated with the flow, as indicated by the policy associated with the class. If sufficient resources exist, the fly-by flow admission block 232 is notified to acquire a level-2 flow out of a pool of available level-2 flows that have not been assigned to protocol layers (e.g., layer-2 or layer-3 classified flows). The fly-by flow admission block 232 then assigns to the level-2 flow, the QoS parameters requested by the flow classification and routing block 218 in the QoS request. The data unit is then forwarded to the buffer management block 234 for queuing. Consequently, the level-2 flow is active and able to accept and queue data units. If there are insufficient resources, the flow may be denied or accepted on an “all-others” flow (e.g., lower priority flow) as pre-determined by user configuration control.

[0060] When flow classification and routing block 218 wishes to terminate the protocol layer flow, it requests the resource manager 222 to deactivate the level-2 flow. All resources that were used by the level-2 flow are returned to the resource pool and the flow is deactivated. When deactivated, the level-2 flow is no longer available to be used until it is reassigned to a new layer-3 or layer-2 flow.

[0061] The fly-by flow admission control block 232 has the advantage over explicit out-of-band flow establishment procedures such as ATM signaling or RSVP in that the data unit is not delayed by the out-of-band flow establishment process that requires communication between networking devices. Thus, with the fly-by flow admission block 232, the first data unit to establish a flow is not delayed and can be immediately forwarded to the network port. This makes applications such as Voice over IP a reality in the WAN.

[0062] Resources assigned to level-1 flows can be partitioned for purposes of limiting access. The sum of the resource partitions is equal to the resource assignment to the level-1 flow. For example, a level-1 flow may have two resource partitions, one for agency A and one for agency B (e.g., for separate LAN networks). Through flow classification, data units can be identified as being members of agency A or B. Thus, when a new data unit stream is identified, the new flow is created from the resource partition assigned to that classification type. In this way, agency A can be limited in the amount of resources that are drawn from the level-1 flow so as not to block resources from being allocated to flows belonging to agency B. Likewise, agency B has its own resource partition to draw from as not to block agency A.

[0063] Once a flow has been established, the buffer-management block 234 determines whether the queue has sufficient space for the data unit. If not, the data unit is discarded. If so, the data unit is queued in the data unit queues 236 associated with the flow. A queue is assigned to each flow. The queue operates as a FIFO and can accept packet, frames, and cells.

[0064] Queues/buffers are allocated for each VPC, VCC, or UNI. This is used to prevent connections from depleting the buffer pool thus blocking other connections from being able to queue data for transmission. It can also be used to bound the queuing delay for a flow. A flow only uses the buffers allocated to the associated VPC, VCC, or UNI. If a flow depletes its buffer allocation, even though there are available buffers in the system, the data unit is discarded. For cases where there are a relatively large number of connections and/or interfaces, buffer allocation can be configured so that the buffers are over-allocated. This results in more buffers being available on a statistical basis with a chance that a flow might not at times be able to use its allocation. For example, 10,000 buffers are allocated to a UNI. As long as a majority of the connections are idle or have not used their entire buffer allocation, active connections can queue more packets and cells than if their buffer allocation were limited to 100 buffers.

[0065] The queues 236 are coupled to a two-tiered hierarchical shaper/scheduler block 238, having a hierarchy level-1 shaper/scheduler and a hierarchy level-2 shaper/scheduler, that selects a flow for service. If the packet arrives into a non-empty queue, the flow has already been scheduled and no further action is required. That is, once a packet is queued, the flow associated with the packet is sent to the shaper/scheduler block 238 for shaping and scheduling. The shaper/scheduler block 238 is invoked periodically to service the queues 236. When a flow is selected for output, the associated output adaptation processing assigned to the flow is performed and the data is delivered to an output port. For example, for ATM, the output function is the ATM encapsulation layer block 240 which applies the RFC 1483 header to the packet. The packet is then passed to the ATM adaptation layer block 242 which segments packets into cells and outputs the cells.

[0066]FIG. 3A illustrates one embodiment of the classification technique provided in accordance with the principles of the invention, while FIG. 3B illustrates one example of Axis Preprocessing technique provided in accordance with the principles of the invention. FIG. 4 illustrates details of functional blocks within the flow classification and routing block 218 according to one embodiment of the invention. With reference to FIG. 4, the flow classification and routing block 218 comprises a flow classification block 300, an IP forwarding block 310 and a flow assignment block 320 and a flow management block 340. In one embodiment, the data (e.g., the tables) used for classification and searching may be stored in internal memory, e.g., in data RAM 110. In alternate embodiments, the data may be stored in external memory 120. The flow classification block 300 uses a series of searches to assign each incoming PDU to a “class.” The class assignment determines the quality of service (QoS) for a particular flow. One embodiment of the process and system for processing the flow based upon class assignments is described in co-pending application Ser. No. ______, entitled “Admission Control, Queue Management and Shaping/Scheduling for Flows,” filed concurrently herewith, and assigned to the assignee of the present invention, the contents of which are incorporated herein by reference. In one embodiment, the first search locates class information for both source and destination IP addresses. This search also locates next hop routing information for the destination address, which is passed to the IP forwarding block 310. Other searches are used to locate classing information for UDP/TCP ports, protocol bye and DS/protocol byte values. The classing information from each search is added together to form a “sum of products” value which represents the PDU's class. This final value is found in a binary range tree, which returns the class descriptor. Details of the binary range tree search are described in FIGS. 5A, 5B and the accompanying text.

[0067] The classification technique of the present invention first defines the class available for classifying each PDU. The classes may be defined in terms of: Source IP Address Ranges, Destination IP Address Ranges, DS/TOS byte ranges (Differentiated Services/Type of Service), Well known applications (destination port number for registered applications), Protocol (UDP, TCP, etc.), Destination Port Number ranges or Source Port Number Ranges. It is understood that the classes may be defined by other parameters, or by a greater or lesser number of parameters. For present discussion purposes, and as shown in FIG. 3A, two classes are defined based on three parameters, RA, RB and RC. For example, parameters RA may be divided into three ranges, RA0, RA1 and RA2; parameters RB may be divided into three ranges, RB0, RB1, RB2; and parameters RC may be divided into three ranges RC0, RC1 and RC2. It is understood that each range may include a greater or fewer number of ranges. Each range has a plurality of values, each of which is associated with particular information or data related to the flow.

[0068] Preprocessing begins by “projecting” each upper and lower limit value of the ranges from each class, onto an “axis. In the example shown in FIG. 3A, the upper and lower limit value of range RA0 are A1 and A0 respectively; and the upper and lower limit value of range RA1 are A2 and A1 respectively. Various points may be similarly located on each axis representing the ranges, as shown in FIG. 3A.

[0069] Since there are three ranges, RA, RB and RC, each set of three points, one on each axis is used to create ranges, and then each range is numbered from 0 to NA (for range RA), from 0 to NB (for range RB) and from 0 to NC (for range RC), where NA, NB and NC are positive integers. The axis with the largest number of ranges becomes the least significant axis (LSA). In the present example, RC is the least significant axis, since it has 3 ranges, while RA has one range and RB has 2 ranges.

[0070] The range number on each axis becomes the “tag” value for the axis' search process. Before saving the “tag” value into the search tree, it is first preshifted so when logically OR'ed with the “tag” values from the other searches, a unique result is formulated. The amount of the preshift depends on whether the axis is the LSA or not. If the axis is the LSA, it is not preshifted, so it's “tag” value gets placed not the least significant bits of the result, thus creating the maximum number of ranges (since the LSA is the axis with the maximum number of ranges in it). If the axis is not the LSA, it is shifted by an amount so that “2^(shiftcount)≧ maximum number of ranges in the LSA.”

[0071] In the example shown in FIG. 3A, the range values for Class 1 and 2 are as follows: Range Value on Axis Class 1 Class 2 RA RA0 RA1 RB RB0 RB1 RC RC0 RC2

[0072] Each axis' tag values are numbered in sequential order starting at 0, so the tag values associated with each range value would be: Axis Class 1 Class 2 RA 0 1 or binary 01 RB 0 1 or binary 01 RC 0 2 or binary 10

[0073] Since axis RC has the most number of ranges, it becomes the LSA, and its values thus are not preshifted. The axis' are sorted by their range count values, so the order of these three axis, from least to most significant, becomes: RC Least significant axis (LSA) RA 2² RB Most significant 2³

[0074] Since axis RC has 3 range/tag values, axis RA values must be preshifted by an amount equal to or greater than 3. Since this is a binary shift, the possible shift values are 1, 2, 4, 8, etc. which correspond to 2^(n) values where ‘n’ is the shift amount. So, axis RA's tag values would be preshifted by 2 bits (2²=4).

[0075] Axis RB's tag values must be preshifted by an amount equal to or greater than the shift amount of axis RC, plus the total number of ranges on RA, which is 2²+2=6. So, axis RB's tag values would be shifted by 3 bits (2³=8).

[0076] So, the resulting preshifted values would be: Axis Class 1 Class 2 RA 0 4 or binary 100 RB 0 8 or binary 1000 RC 0 2 or binary 10

[0077] Now, suppose a PDU is received which has values which fall into the following ranges:

[0078] value 1 from PDU is within range RA0.

[0079] value 2 from PDU is within range RB1.

[0080] value 3 from PDU is within range RC2.

[0081] The preshifted tag values for each of these are then ORed together:

[0082] 0 OR 8 OR 2=10

[0083] The value 10 is then found in the Final Classification Binary Range Tree which yields the “class” designation for the PDU, which in the case of FIG. 3A, would be class 2.

[0084] The preshifted values are stored in the corresponding nodes of a Binary Range Tree (see FIGS. 5A, 5B and accompanying text), so when a value is found within the range, the range's preshifted “tag” value is located. Since the values are preshifted, the only additional processing required is to OR them together to form a final “tag” value. This final “tag” value is finally found in a Binary Range Tree which results in the actual “class” for the PDU.

[0085]FIG. 3B illustrates a simple example of the classification system provided in accordance with the principles of the invention. In this example, the classification system is based only on source and destination IP addresses. As shown in FIG. 3B, three classes are defined as follows:

[0086] Class 1=Any PDU from IP addresses 192.1.1.1 to 2.1.5.255, and destined for any IP address in the range 192.1.1.1 to 255.255.255.255.

[0087] Class=Any PDU from IP addresses 192.1.1.1 to 200.1.5.255, and destined for any IP address in the range 200.1.5.1 to 200.1.5.255.

[0088] Class 3=Any PDU from IP addresses 192.1.1.1 to 192.1.1.255, and destined for any IP address in the range 192.1.1.1 to 192.1.1.255.

[0089] Preprocessing begins by “projecting” each upper and lower limit value, from each class, onto an imaginary “axis,” as illustrated at the top of FIG. 3B. For the 3 class definitions, this results in the following “points” on each “axis.”

[0090] On the “Source IP Axis:”

[0091] Point 1=0.0.0.0 (this is always assumed to be there)

[0092] Point 2=192.1.1.1 (lower value from all 3 classes)

[0093] Point 3=192.1.1.255 (upper value from class 3)

[0094] Point 4=200.1.5.255 (upper value from all three classes)

[0095] Point 5=255.255.255.255 (this is always assumed to be there)

[0096] On the “Destination IP Axis:”

[0097] Point 1=0.0.0.0 (this is always assumed to be there)

[0098] Point 2=192.1.1.1 (lower value from classes 1 & 3)

[0099] Point 3=192.1.1.255 (upper value from class 3)

[0100] Point 4=200.1.5.1 (lower value from class 2)

[0101] Point 4=200.1.5.255 (upper value from class 2)

[0102] Point 5=255.255.255.255 (upper value from class 1)

[0103] Each set of two points on each axis is used to create ranges, and then each range is numbered form 0 to n. The following ranges are produced from the above example:

[0104] On the “Source IP Axis:”

[0105] Range 0=0.0.0.0 to 192.1.1.0

[0106] Range 1=192.1.11 to 192.1.1.255

[0107] Range 2=192.1.2.0 to 200.1.5.255

[0108] Range 3=200.1.6.0 to 255.255.255.255

[0109] On the “Destination IP Axis:”

[0110] Range 0=0.0.0.0 to 192.1.1.0

[0111] Range 1=192.1.1.1 to 192.1.1.255

[0112] Range 2=192.1.2.0. to 200.1.5.0

[0113] Range 3=200.1.5.1. to 200.1.5.255

[0114] Range 4=200.1.6.0 to 255.255.255.255

[0115] The axis with the largest number of ranges becomes the least significant axis (LSA). In this example, the LSA would be the “Destination IP Axis” since it has 5 ranges compared to only 4 on the “Source IP Axis.”

[0116] The range number on each axis become the “tag” value for the axis' search algorithm. Before saving the “tag” value into the search tree, it is first preshifted so when logically ORed with the “tag” values from the other searches, a unique result is formulated. The amount of the preshift depends on whether the axis is the LSA or not. If the axis is the LSA, it is not preshifted, so it's “tag” value gets placed not the least significant bits of the result, thus creating the maximum number of ranges (since the LSA is the axis with the maximum number of ranges in it). If the axis is not the LSA, it is shifted by an amount so that “2^(shiftcount)≧ maximum number of ranges in the LSA.” Since the LSA in this example has 5 m ranges, the other axis' “tag” values are shift by 3 bits (2³=8 which is greater than 5 ranges in the LSA).

[0117] In particular, each axis' tag values (except for the LSA) are shifted by an amount equal to the maximum number of bits required to represent the maximum tag value for each axis which has lower significance than the axis in question. In the above example, the LSA (the Destination IP Address Axis) has a maximum tag value of 4 (where 0, 1, 2, 3, 4 are the values of each tag). A “4” requires 3 bits to encode (binary 100=decimal 4). As a result, each tag value for the non-LSA (the Source IP Address Axis) is shifted left by 3 bits. This is the same as multiplying each tag value by 2³=8.

[0118] The preshifted values are stored in the corresponding nodes of the Binary Range Tree, so when a value is found within the range, the range's preshifted “tag” value is located. Since the values are preshifted, the only additional processing required is to OR them together to form a final “tag” value. This final “tag” value is finally found in a Binary Range Tree which results in the actual “class” for the PDU. Thus, in the present example, Source IP tag values 0, 1, 2 and 3 become 0, 8,16 and 24 respectively, which are then stored in the classification tables.

[0119] If a PDU is classified so that its Source IP address matches Class 3, the value read from the Source IP table would be 8 (tag value of 1 shifted by 3 bits). If the same PDU's Destination IP address matches class 2, the value read from the Destination IP table would be 3 (tag value is 3, which is not shifted because the destination axis is the LSA). These two values are combined to form 8+3=11. The value 11 is then found in the final classification binary range tree.

[0120] With reference to FIG. 4, the IP forwarding block 310 uses the next hop information resulting from the PDU's classification to rout the PDU. The routed PDU, along with the class definition, LIP list and network address information, is passed to the flow assignment block 320.

[0121] The flow assignment block 320 utilizes the class descriptor found by the flow classification block 300 to locate the outbound flow ID for a PDU. The PDU is provided to the forwarding API block 230 in the Queue Control/Transmit (QCT) module 205, along with its flow ID, LIF list and class definition information. If the flow ID is valid the QCT module 205 queues the PDU and returns a “successful” indication. If the flow ID was either invalid (dropped by the QCT module 205) or nonexistent (i.e., it is a new flow), the QCT module 205 will attempt to assign a flow ID. If successful, the new flow ID is returned is returned to the flow assignment block, which then saves the information in the original class descriptor. If a flow ID could not be assigned, the QCT module 205 retries transmission using the “all others” class.

[0122] The flow management block 330 generates and updates a set of tables (indexed by protocol, DS byte and port values) to be used by the flow classification block 300. In one embodiment, the set of tables include a class definition table 332, a policy definition table, and a pipe definition table 336. The tables 332,334 and 336 facilitate efficient assignment of an incoming PDU to a “class”. The tables 332, 334 and 336 also assign a class descriptor value to each PDU, which is passed in the buffer descriptor. The flow management block 340 also creates class descriptors 340 to be used by the flow assignment block 320. The class descriptors 340 are referenced by the classification tables 304. The flow assignment block 330 uses the class descriptors 340 to locate an outbound flow ID for a PDU.

[0123] The QCT module 205 sends “events” such as bandwidth changes, to the flow management block 330. These events may cause the class descriptors 340 to be rebuilt due to changes in policies, as described in detail in the following sections. The flow management block 330 also handles traffic management requests.

[0124] More particularly, the flow classification block 300 processes up to a predetermined number of PDUs in parallel, assigning each to a class. For discussion purposes, the predetermined number of PDUs is 4, although it is understood that a greater or lesser number of PDUs may be processed in parallel in accordance with the principles of the present invention. The flow classification block also obtains the destination routing information, which is saved in a buffer descriptor (where?) for later use by the IP forwarding block 310. If the flow classification block 300 determines that a PDU must be discarded, it is marked in the buffer descriptor. The flow assignment block 320 will subsequently discard the PDU. The resulting class information is stored in the buffer descriptor, which the flow assignment block uses to assign the PDU to a specific flow.

[0125] Each type of traffic to be identified by the flow classification block 300 must be defined by a class definition. A class definition will allow a system administrator to specify the IP address range, protocol values, DS byte values and UDP/TCP port values to be identified in forwarded IP PDUs, which then becomes part of the class. -In one embodiment, there are 1024 different classes. One or more of the following criteria can be combined to form a template for the PDUs associated with a class:

[0126] Source IP Address Ranges

[0127] Destination IP Address Range

[0128] DS/TOS byte range (Differentiated Services/Type of Service

[0129] Well known application (destination port number for registered applications)

[0130] Protocol (UDP, TCP, etc.)

[0131] Source Port Number Range

[0132] Destination Port Number Range

[0133] By default, an “all others” class is defined which will match any incoming PDU and use a “best effort” policy for delivery. User defined classes will essentially be included in the “all others” class.

[0134] The class definition table 332 allows a class of IP PDUs to be defined. Table 1 (See Appendix) illustrates one example of the table objects and their usage. In one embodiment, the table is instanced by the ClassDefinitionIndex.

[0135] The policy definition table 334 associates a class definition with a pipe definition. In one embodiment, there are 2048 different policies. One or more of the following criteria can be combined to form a policy which will associate a pipe definition with a class definition:

[0136] Outgoing priority value for queuing

[0137] Outgoing DS byte value

[0138] Bandwidth allowed for each flow within the class

[0139] Discard priority

[0140] Table

[0141]2 (See Appendix) illustrates an example of the Policy Definition Table, which is instanced by PolicyDefinitionIndex.

[0142] The pipe definition table 336 creates a slice of the available circuit's bandwidth (e.g., in the case of ATM, the VCC), which can be mapped to classes of incoming data. A single pipe definition causes a single flow aggregate to be created within QCT module's 205's level 2 scheduler. In one embodiment, there are 1024 different pipe definitions. The following criteria is defined for each pipe:

[0143] Logical interface

[0144] WAN circuit identifier (or 0 for a LAN interface)

[0145] Percentage of bandwidth to assign to the pipe

[0146] Maximum queuing delay allowed on pipe.

[0147] Table 3 (See Appendix) illustrates one embodiment of the pipe definition table 336. The table is instanced by PipeDefinitionIndex.

[0148] To classify PDUs, several searches are performed. The first search utilities a Routing Table 302 to locate classing information based on source and destination IP addresses. In one embodiment, the search engine for this search is based on the Binary Range Tree search process of the present invention, as discussed in detail in the following sections. In one embodiment, the routing table 302 stores routing information. In an alternate embodiment, the routing table 302 stores both routing and classing information. In one embodiment, the routing table 302 is shared between the flow classification and IP forwarding blocks 300 and 320.

[0149] The other searches locate classing information based on UDP/TCP ports, DS and protocol bytes. In one embodiment, these engines utilize an “array look-up” search technique, as known by one of skill in the art, to conduct the other searches. The flow classification tables 304 are used by the “array look-up” search technique to locate classing information based on UDP/TCP ports and DS/protocol bytes.

[0150] The PDUs classified by the flow classification block 300 are forwarded, along with their associated routing information, to the IP forwarding block 310. The IP forwarding block 310 identifies an outbound LIF for each received PDU and then passes this information to the flow assignment block 320. The PDUs are then forwarded to the QCT module 205. As described earlier, if the flow assignment block 320 determines that a PDU must be discarded, it is marked in the buffer descriptor. The flow assignment block 320 will subsequently discard the PDU thus marked.

[0151]FIG. 5A illustrates one embodiment of a search process flow provided in accordance with the principles of the present invention. The search process flow 500 facilitates searching of data corresponding to various parameter ranges of incoming PDUs. An example of the ranges to be searched includes the IP Address of the incoming PDUs. The data associated with the IP address ranges are stored within the CPU's 105's internal memory, such as in cache memory. Data outside of the IP address ranges may be stored in SRAM 120 or other in other memory locations external to the CPU 105.

[0152] The search process involves determining if the value k associated with the incoming PDU is located in any one of the stored ranges located in the CPU's 105's internal memory. If so, data associated with the stored ranges may be efficiently retrieved. Each set of stored ranges is located in a node of a tree, with the search progressing from a root or upper level node to a secondary or lower level nodes. The search process flow 500 operates as follows. Beginning from a start state, the process 500 proceeds to decision block 502, where it determines if the node is null (i.e., contains no data). If so, the process 500 proceeds to process block 504, where it returns a default result. In one embodiment, the default result is to assign the PDU having the value k to an “all others class”. In this case, best efforts will be used to transport the corresponding PDU. If the node is not null, the process 500 proceeds to read the node's range, as shown in process block 506. The process 500 then advances to process block 508, where it queries if k is less than the node's range. If so, the process 500 proceeds to process block 510, where it selects to proceed to a node having a range that is less than the current node. The process 500 then returns to decision block 504. Otherwise, the process 500 proceeds to decision block 512, where it determines if k is greater than the node's range. If so, the process 500 proceeds to process block 514, where it selects to proceed to a node having a range that is greater than the current node. The process 500 then proceeds to decision block 504. Otherwise, the process 500 proceeds to process block 516, where it returns the result from the node in which k is found. For example, data associated with k, as found within the node, is returned. The process 500 is then terminated.

[0153]FIG. 5B is a diagram that illustrates one example of the search process of FIG. 5A. In this example, the value k (such as the IP address ranges) and the corresponding data are stored in internal memory of CPU 105. These IP address ranges include range 192.1.1.1-192.1.1.255, 193.1.1.1-193.1.1.255, 200.255.1.1-200.255.255.255, 191.1.0.1-191.1.0.255, 192.1.0.1-192.1.0.255 and 163.1.1.1-163.1.1.255. The process 550 begins the search by determining if the IP address of the incoming PDU is located in range 192.1.1.1-192.1.1.255 (block 552). If so, the data corresponding to the IP address located in range 192.1.1.1-192.1.1.255 is retrieved. Otherwise, the process 550 proceeds to search in ranges that are both greater than and less than range 192.1.1.1-192.1.1.255.

[0154] For example, the process 550 may proceed to search in the range 193.1.1.1-193.1.1.255 (block 554). If the IP address is found to be in that range, the corresponding data is retrieved. Otherwise, the process 550 proceeds to search in the range 200.255.255.255. If the IP address is found in the range 200.255.255.255, the corresponding data is retrieved. Otherwise, a default search result is returned.

[0155] The process 550 may also proceed to search in the range 191.1.0.1-191.1.0.255 (block 558). If the IP address is found to be in that range, the corresponding data is retrieved. Otherwise, the process 550 proceeds to search in ranges that are both greater than or less than that of range 191.1.0.1-191.1.0.255. For instance, the process 550 may search in the range 192.1.0.1-192.1.0.255. If the IP address is found to be in that range, the corresponding data is retrieved. Otherwise, the process 550 returns a default search result. The process 550 may also search in the range 163.1.1.1-163.1.1.255. Similarly, if the IP address is found to be in that range, the corresponding data is retrieved. Otherwise, the process 550 returns a default search result.

[0156] In the example of FIG. 5B, a binary range search tree that is 3 levels deep is discussed. It is understood that any number of levels that are greater or less than that may be implemented for searching purposes. It has been determined that binary range searches of up to 6 levels may be implemented and stored in the internal memory of a processor such as cache memory, while providing efficient searching. This aspect of the invention thus facilitates efficient searching and identification of incoming data while maintaining the worst case and average case search times deterministic and within the bounds required by the application.

[0157] The present invention thus provides a classification system and method by implementing Axis Preprocessing in combination with a Binary Range Tree searching technique. The Binary Range Tree searching technique allows large ranges of contiguous values to be search using a minimal number of tree “nodes”, while the Axis Preprocessing technique assures that the maximum number of contiguous ranges is generated in the final “class” search step.

[0158] While certain exemplary embodiments have been described and shown in the accompanying drawings, it is to be understood that such embodiments are merely illustrative of and not restrictive on the broad invention, and that this invention not be limited to the specific constructions and arrangements shown and described, since various other modifications may occur to those ordinarily skilled in the art. TABLE 1A Object Type Permissions Description ClassDefinitionIndex Unsigned Read Only The index value for this Class Definition (1- Long 1024) ClassDefinitionAlias Octet Read/Write An alias to assign to this class String ClassDefinitionParentClassID Unsigned Read/Write Parent class definition if using a hierarchy of Long classes. ClassDefinitionFlowType Enum Read/Write The type of flow . . . NORMAL, CHANNELED, DIFFSERVINGRESS, DIFFSERVNODE, DIFFSERVEGRESS, or DELETE. Set to DELETE to remove this Class Definition from the table. ClassDefinitionSourceIPMask IP address Read/Write The value to mask each source IP address with before checking its range. (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionDestIPMask IP address Read/Write The value to mask each destination IP address with before checking its range . . . (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionSourceIPLower IP address Read/Write The first source IP which is within the range . . . Bound (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionSourceIPUpper IP address Read/Write The last source IP which is within the range . . . Bound (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionDestIPLower IP address Read/Write The first destination IP which is within the Bound range . . . (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionDestIPUpper IP address Read/Write The last destination IP which is within the range . . . Bound (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionDSLowerBound Unsigned Read/Write The first DS/TOS byte value which is within Byte range. ClassDefinitionDSUpperBound Unsigned Read/Write The last DS/TOS byte value which is within Byte range. (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionWellKnownAppli- Enum Read./Write The “well known application” value (see 4.1.1), cation or 0xff if not used . . . (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionProtocol Enum Read/Write (Valid if ClassDefinitionWellKnownApplication is not used) . . . TCP, UDP, TCPUDP, rfc1700 defined protocols, or ANY . . . (not valid for

[0159] TABLE 1B DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionSourcePortLower Unsigned Read/Write (Valid if ClassDefinitionWellKnownApplication Bound Short is not used) . . . The first source port value which is within range . . . (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionSourcePortUpper Unsigned Read/Write (Valid if ClassDefinitionWellKnownApplication Bound Short is not used) . . . The last source port value which is within range . . . (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionDestPortLower Unsigned Read/Write (Valid if ClassDefinitionWellKnownApplication Bound Short is not used) . . . The first destination port value which is within range . . . (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionDestPortUpper Unsigned Read/Write (Valid if ClassDefinitionWellKnownApplication Bound Short is not used) . . . The last destination port value which is within range . . . (not valid for DIFFSERVNODE or DIFFSERVEGRESS types) ClassDefinitionSLAMonitorRate Unsigned Read/Write The interval (in seconds) between SLA Short monitoring. A value of 0 disables SLA monitoring for this class. ClassDefinitionSLAAlarmRate Unsigned Read/Write The minimum interval (in seconds) between Long SLA alarms. ClassDefinitionSLAAlarmThreshold Unsigned Read/Write The number of alarm conditions which must Long occur before an actual alarm is generated. ClassDefinitionLIFAgingTime Unsigned Read/Write The number of milliseconds to use as an aging Long time for Flow ID information saved for a LIF. This aging time is also used for classification information which is automatically created for a channelized flow.

[0160] TABLE 2 Object Type Permissions Description PolicyDefinitionIndex Unsigned Read Only The index value for this Policy Definition (1- Long 1024). PolicyDefinitionAlias Octet Read/Write An alias to assign to this policy String PolicyDefinitionType Enum Read/Write NORMAL, DIFFSERVINGRESS, DIFFSERVNODE, DIFFSERVEGRESS, DISCARD, or DELETE. Set to DELETE to remove this Policy Definition. PolicyDefinitionLIF Unsigned Read Only The logical interface this relates to. Long PolicyDefinitionStartTime Time of Read/Write The time this policy comes into effect. Day PolicyDefinitionEndTime Time of Read/Write The time this policy goes out of effect. Day PolicyDefinitionDayofWeek Unsigned Read/Write Bit flags corresponding to each day of the Byte week . . . (Bits 0-6 = Monday-Sunday). PolicyDefinitionPipeID Unsigned Read/Write The Pipe to associate with this Policy. Long PolicyDefinitionClassID Unsigned Read/Write The Class to associate with this Policy. Byte PolicyDefinitionChannelBandwidth Unsigned Read/Write The bandwidth allowed for each flow over this Long Class/Policy. Only valid is PolicyDefinitionChannelized is set TRUE. PolicyDefinitionChannelized Boolean Read/Write Set TRUE if this Policy defines channelized flows over the specified Pipe. This causes each new flow to be given a unique “slice” of the available bandwidth, as defined by PolicyDefinitionChannelBandwidth. If FALSE, then all flows use the Pipe's bandwidth on a first-come-first-served basis. PolicyDefinitionOutboundDSValue Unsigned Read/Write The DS byte value to set in outbound PDUs, or byte NA if no replacement is to be performed. (valid only is set to DIFFSERV). PolicyDefinitionPriority Unsigned Read/Write The relative priority of PDUs using this Policy byte with respect to other Policies. PolicyDefinitionEvent Enum Read/Write STATIC - the Policy is always in effect unless superceded by another. The Policy becomes the default. TIME - the Policy goes into effect and goes out of effect based on the Time and Day values specified. REDUCEDBW - the Policy goes into effect if the Pipe's bandwidth is reduced by the physical interface. INCREASEDBW - the Policy goes into effect if the Pipe's bandwidth is increased by the physical interface.

[0161] TABLE 3 Object Type Permissions Description PipeDefinitionIndex Unsigned Read Only The index value for this Pipe Definition (1- Long 1024). PipeDefinitionType Enum Read/Write VALID - the Pipe is valid. DELETE - to remove the Pipe Definition. PipeDefinitionAlias Octet Read/Write An alias to assign to this Pipe. String PipeDefinitionLIF Unsigned Read/Write The logical interface this Pipe is using. Long PipeDefinitionCircuitID Unsigned Read/Write The ID of the circuit this Pipe is using. Long PipeDefinitionBandwidth Unsigned Read/Write The amount of the circuit's bandwidth to assign Long to this Pipe. If the value is <= 100, it is considered to be a “percentage” value. If the value is > 100, it is considered to be a “bits per sec” value. PipeDefinitionDelay Unsigned Read/Write The maximum allowable queuing delay for this Long Pipe. 

What is claimed is:
 1. A method for searching information, comprising: defining a first node having a first range, a second node having a second range that is either less than or greater than said first range, each of said first and second ranges having a plurality of range values, each of said range values having data associated therewith; receiving information having a value; determining if said value is located in said first node, if so, retrieving data associated with said value, otherwise determining if said value is located in said second node; retrieving data associated with said value if said value is located in said second node.
 2. The method of claim 1, wherein in the act of retrieving data, providing a default result if said value is not located in said second node.
 3. The method of claim 1, wherein in the act of retrieving data, said default result is a predetermined value.
 4. The method of claim 2, further comprising defining a third node having a having third and fourth ranges, said third range being less than said second range, said fourth range being greater than said second range, each of said third and fourth ranges having a plurality of range values, each of said range values having data associated therewith; determining if said value is located in said third node, if so, retrieving data associated with said value, otherwise determining if said value is located in said fourth node; retrieving data associated with said value if said value is located in said fourth node, otherwise providing a default result.
 5. The method of claim 4, wherein in the act of retrieving, the default result is a predetermined value.
 6. A computer program product comprising: a computer usable medium having computer program code embodied therein for searching for information in a processing unit, the computer program product having: (a) computer readable program code for defining a first node having a first range, a second node having a second range that is either less than or greater than said first range, each of said first and second ranges having a plurality of range values, each of said range values having data associated therewith; (b) computer readable program code for receiving information having a value; (c) computer readable program code for determining if said value is located in said first node, if so, retrieving data associated with said value, otherwise determining if said value is located in said second node; and (d) computer readable program code for retrieving data associated with said value if said value is located in said second node.
 7. The computer program product of claim 6, wherein in (d), said computer readable program code, provides a default result if said value is not located in said second node.
 8. The computer program product of claim 8, wherein in(d), said default result is a predetermined value.
 9. The computer program product of claim 7, wherein said computer program code further defines a third node having a having third and fourth ranges, said third range being less than said second range, said fourth range being greater than said second range, each of said third and fourth ranges having a plurality of range values, each of said range values having data associated therewith; determines if said value is located in said third node, if so, retrieving data associated with said value, otherwise determining if said value is located in said fourth node; retrieves data associated with said value if said value is located in said fourth node, otherwise providing a default result.
 10. The computer program product of claim 9, the default result is a predetermined value.
 11. A system comprising: a processor having a processing unit; a memory module coupled to said processor, said memory module having instruction sequences to cause said processor to: define a first node having a first range, a second node having a second range that is either less than or greater than said first range, each of said first and second ranges having a plurality of range values, each of said range values having data associated therewith; receive information having a value; determine if said value is located in said first node, if so, retrieving data associated with said value, otherwise determining if said value is located in said second node; retrieve data associated with said value if said value is located in said second node.
 12. The system of claim 11, wherein in the act of retrieving data, providing a default result if said value is not located in said second node.
 13. The system of claim 11, wherein in the act of retrieving data, said default result is a predetermined value.
 14. The system of claim 12, further comprising defining a third node having a having third and fourth ranges, said third range being less than said second range, said fourth range being greater than said second range, each of said third and fourth ranges having a plurality of range values, each of said range values having data associated therewith; determining if said value is located in said third node, if so, retrieving data associated with said value, otherwise determining if said value is located in said fourth node; retrieving data associated with said value if said value is located in said fourth node, otherwise providing a default result.
 15. The system of claim 14, wherein in the act of retrieving, the default result is a predetermined value. 